<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<title>Administration: My Frame version 1.0</title>
	<meta name="keywords" content="" />
	<meta name="description" content="" />
	<link rel="stylesheet" type="text/css" href='<?=base_url()?>themes/default/admin/styles/login.css'/>
</head>
<body>
<?php
$username = array (
	'name'	=> 'username',
	'id'	=> 'username',
	'size'	=> 30,
	'value' => set_value('username')
);
$password = array(
	'name'	=> 'password',
	'id'	=> 'password',
	'size'	=> 30
);
$remember = array(
	'name'	=> 'remember',
	'id'	=> 'remember',
	'value'	=> 1,
	'checked'	=> set_value('remember'),
	'style' => 'margin:0;padding:0'
);
$confirmation_code = array(
	'name'	=> 'captcha',
	'id'	=> 'captcha',
	'maxlength'	=> 8
);
?>
<div id="page" style="width:500px;">
	<div id="content">
		<div class="detail">
			<h1>Login Form</h1>
				<?php echo form_open($this->uri->uri_string())?>
				
				<?php if ($this->dx_auth->get_auth_error() != null|| $this->dx_auth->get_auth_error() != "") { ?>
					<div class="error">
						<?php echo $this->dx_auth->get_auth_error();?>
					</div>
				<?php }?>
				<?php if (form_error($username['name']) != "" || form_error($password['name']) != "") { ?>
					<div class="error">
						The Username or Password is required.
					</div>
				<?php }?>
				
				<div id="login_form">
					<div class="login_item">
						<div class="login_label"><?php echo form_label('Username', $username['id']);?></div>
						<div><?php echo form_input($username)?></div>
					</div>
					<div class="login_item">
						<div class="login_label"><?php echo form_label('Password', $password['id']);?></div>
						<div><?php echo form_password($password)?></div>
					</div>
				
					<?php if ($show_captcha): ?>
					<div class="login_item">
						<div>Enter the code exactly as it appears. There is no zero.</div>
						<div><?php echo $this->dx_auth->get_captcha_image(); ?></div>
					</div>
					<div class="login_item">
						<div class="login_label02"><?php echo form_label('Confirmation Code', $confirmation_code['id']);?></div>
						<div>
							<?php echo form_input($confirmation_code);?>
						</div>
						<?php if (form_error($confirmation_code['name']) != "") { ?>
						<div class="error"><?php echo form_error($confirmation_code['name']); ?></div>
						<?php } ?>
					</div>
					<?php endif; ?>
				
					<div class="login_item02">
						<?php echo form_checkbox($remember);?> <?php echo form_label('Remember me', $remember['id']);?> | 
						<?php echo anchor($this->dx_auth->forgot_password_uri, 'Forgot password');?> 
						<?php
							if ($this->dx_auth->allow_registration) {
								echo "| " . anchor($this->dx_auth->register_uri, 'Register');
							};
						?>
					</div>
					<div class="login_item02">
						<?php echo form_submit('login','Login');?>
					</div>
				</div>
				<?php echo form_close()?>
		</div>
	</div>
</div>
</body>
</html>